package com.example.dailyrecord.entity;

public enum EmailContent {
    REGISTER("REGISTER", "注册邮件",
            "您正在注册一个账号，请先验证此邮箱的有效性！\n您本次验证码为 : %s\n该验证码 3 分钟内有效，请尽快完成注册！"),
    UPDATE_PASS("UPDATE_PASS", "修改密码邮件",
            "您正在修改密码，请先验证此邮箱的有效性！如非您本人操作，请尽快修改密码！\n您本次验证码为 : %s\n该验证码 3 分钟内有效，请尽快完成修改密码！"),
    NOTICE_EMAIL("NOTICE_EMAIL", "系统提醒邮件",
            "您还有未完成的任务日志，请于今晚 23 : 30 前完成，之后系统将自动设置为已完成"),
    ;

    private final String action;
    private final String subject;
    private final String content;

    EmailContent(String action, String subject, String content) {
        this.action = action;
        this.subject = subject;
        this.content = content;
    }

    public static EmailContent getContent(int index) {
        return values()[index];
    }

    public String getAction() {
        return action;
    }

    public String getSubject() {
        return subject;
    }

    public String getContent() {
        return content;
    }
}
